From 24a78dba319fc1183a47ec94e6a61add5225eb75 Mon Sep 17 00:00:00 2001 From: t895 Date: Fri, 29 Dec 2023 01:08:12 -0500 Subject: frontend_common: config: Do not count "." as a special character It would break reading floating point settings --- src/frontend_common/config.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend_common/config.h b/src/frontend_common/config.h index e73cf6929..0c4d505b8 100644 --- a/src/frontend_common/config.h +++ b/src/frontend_common/config.h @@ -213,9 +213,8 @@ private: const std::optional& use_global); void WriteString(const std::string& key, const std::string& value); - inline static std::array special_characters = {'!', '#', '$', '%', '^', '&', '*', - '|', ';', '\'', '\"', ',', '<', '.', - '>', '?', '`', '~', '='}; + inline static std::array special_characters = { + '!', '#', '$', '%', '^', '&', '*', '|', ';', '\'', '\"', ',', '<', '>', '?', '`', '~', '='}; struct ConfigArray { std::string name; -- cgit v1.2.3